import request from '@/utils/request'

// 查询出入登记列表
export function listRuralTurnover(query) {
  return request({
    url: '/rural/ruralTurnover/list',
    method: 'get',
    params: query
  })
}

// 查询出入登记详细
export function getRuralTurnover(id) {
  return request({
    url: '/rural/ruralTurnover/' + id,
    method: 'get'
  })
}

// 新增出入登记
export function addRuralTurnover(data) {
  return request({
    url: '/rural/ruralTurnover',
    method: 'post',
    data: data
  })
}

// 修改出入登记
export function updateRuralTurnover(data) {
  return request({
    url: '/rural/ruralTurnover',
    method: 'put',
    data: data
  })
}

// 删除出入登记
export function delRuralTurnover(id) {
  return request({
    url: '/rural/ruralTurnover/' + id,
    method: 'delete'
  })
}
